﻿@model ArchiveViewModel
@{
    Layout = null;
    ViewBag.Title = "案卷信息查看";
    var num = 0;
}
<style type="text/css">
    .tab_ajtm {
        font-family: "宋体";
        font-weight: bold;
        font-size: 16px;
        color: #000000;
        text-align: center;
        border-collapse: collapse;
    }

        .tab_ajtm .td1 {
            text-align: right;
        }

        .tab_ajtm .td2 {
            font-size: 14px;
            text-align: left;
            border-bottom: 1px solid #000;
        }

        .tab_ajtm .td3 {
            font-size: 25px;
            text-align: center;
        }

        .tab_ajtm .td4 {
            font-size: 18px;
            text-align: center;
        }

        .tab_ajtm .td5 {
            font-size: 14px;
            text-align: center;
            border-bottom: 1px solid #000;
        }

    .tab013 {
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
    }

        .tab013, .tab013 tr, .tab013 td {
            font-family: "宋体";
            font-size: 14px;
            color: #000000;
            line-height: 30px;
        }

            .tab013 .tab013_title {
                font-weight: bold;
                height: 32px;
                line-height: 32px;
                text-align: center;
                padding-left: 10px;
                color: #045795;
            }

            .tab013 td {
                text-align: center;
                font-size: 12px;
                color: #222;
                border-left: 1px solid #000;
                border-top: 1px solid #000;
                border-collapse: collapse;
            }

    .tab_jnbkb {
        font-family: "宋体";
        font-weight: bold;
        font-size: 14px;
        color: #000000;
        text-align: center;
        border: 1px solid #000;
        border-collapse: collapse;
        vertical-align: top;
    }

        .tab_jnbkb .td1 {
            text-align: right;
        }

        .tab_jnbkb .td2 {
            /*font-weight: normal;*/
            text-align: left;
            vertical-align: top;
        }
</style>

<div class="pageFormContent sortDrag" layouth="57" style="background: #f9fcfe">
    <div class="tabs">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li><a href="javascript:;"><span>案卷题名</span></a></li>
                    <li><a href="javascript:;"><span>卷内目录</span></a></li>
                    <li><a href="javascript:;"><span>卷内备考表</span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent" layouth="90">
            <div style="width: 90%; margin: 0 auto;">
                <table class="tab_ajtm" style="width: 100%">
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 18%;"></td>
                        <td style="width: 12%;" class="td1">档&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
                        <td style="width: 44%;" class="td2">@(Model.TheBcdFilelistInfo.Fl_Code + "-" + Model.TheBcdFilelistInfo.Fl_Numb.ToString("D3"))</td>
                        <td style="width: 18%;"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">档案馆号：</td>
                        <td class="td2">@(Model.TheBcdFilelistInfo.Fl_Archive)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="2" class="td3">案&nbsp;卷&nbsp;题&nbsp;名</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="2" class="td4">@(Model.TheBcdFilelistInfo.Fl_Item + Model.TheBcdFilelistInfo.Fl_FileTitle + Model.TheBcdFilelistInfo.Fl_FileName)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">立卷单位&nbsp;</td>
                        <td class="td5">@(Model.TheBcdFilelistInfo.Fl_Unit)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">起止日期&nbsp;</td>
                        <td class="td5">@((Model.TheBcdFilelistInfo.Fl_StartDate == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_StartDate).ToString("yyyy.MM")) + (Model.TheBcdFilelistInfo.Fl_StartDate != null && Model.TheBcdFilelistInfo.Fl_EndDate != null ? "-" : "") + (Model.TheBcdFilelistInfo.Fl_EndDate == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_EndDate).ToString("yyyy.MM")))</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">保管期限&nbsp;</td>
                        <td class="td5">@(Model.TheBcdFilelistInfo.Fl_Kept)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">密&nbsp;&nbsp;&nbsp;&nbsp;级&nbsp;</td>
                        <td class="td5">@(Model.TheBcdFilelistInfo.Fl_Level)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                </table>
            </div>
            <div style="width: 90%; margin: 0 auto;">
                <div style="font-family: 宋体; text-align: center; font-size: large; font-weight: bold; margin-top: 10px;">卷&nbsp;&nbsp;&nbsp;内&nbsp;&nbsp;&nbsp;目&nbsp;&nbsp;&nbsp;录 </div>
                <div style="text-align: right; height: 22px;">档号：@(Model.TheBcdFilelistInfo.Fl_Code)-@(Model.TheBcdFilelistInfo.Fl_Numb.ToString("D3"))</div>
                <table width="100%" class="tab013">
                    <tr class="tab013_title">
                        <td style="width: 50px;">序号</td>
                        <td style="width: 80px;">文件编号</td>
                        <td style="width: 100px;">责任者</td>
                        <td>文件材料题名</td>
                        <td style="width: 80px;">日期</td>
                        <td style="width: 60px;">页数</td>
                        <td style="width: 100px;">备注</td>
                        <td style="width: 50px;">附件</td>
                    </tr>
                    @foreach (var item in Model.TheBcdVolumedirectoryList)
                    {
                        num++;
                        <tr id="tr_@(item.Vd_ID)">
                            <td>@(item.Vd_Order)</td>
                            <td>@(item.Vd_Code)</td>
                            <td>@(item.Vd_Duty)</td>
                            <td>@(item.Vd_Name)</td>
                            <td>@(item.Vd_Date == null ? "" : Convert.ToDateTime(item.Vd_Date).ToString("yyyy-MM-dd"))</td>
                            <td>@(item.Vd_Page)</td>
                            <td>@(item.Vd_Remark)</td>
                            <td>
                                <button id="dialogBtn_@num" type="button" onclick="openAttachFileDialog('@item.FilePath')">附件(@(item.FileCount))</button>
                            </td>
                        </tr>
        
                    }
                </table>
            </div>
            <div style="width: 70%; margin: 0 auto;">
                <div style="font-family: 宋体; text-align: center; font-size: large; font-weight: bold; margin-top: 10px;">卷&nbsp;&nbsp;内&nbsp;&nbsp;备&nbsp;&nbsp;考&nbsp;&nbsp;表 </div>
                <div style="font-family: 宋体; text-align: left; margin-top: 6px; font-weight: bold; font-size: 14px;">档&nbsp;&nbsp;号：@(Model.TheBcdFilelistInfo.Fl_Code)-@(Model.TheBcdFilelistInfo.Fl_Numb.ToString("D3"))</div>
                <table width="100%" class="tab_jnbkb">
                    <tr>
                        <td style="width: 20%;">&nbsp;</td>
                        <td style="width: 45%;">&nbsp;</td>
                        <td style="width: 25%;">&nbsp;</td>
                        <td style="width: 10%;">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="td1">互见号：</td>
                        <td class="td2" rowspan="3" colspan="2">@(Model.TheBcdFilelistInfo.Fl_TheNo)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="td1">说&nbsp;&nbsp;明：</td>
                        <td class="td2" rowspan="12" colspan="2">@(Model.TheBcdFilelistInfo.Fl_Explain)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">立&nbsp;卷&nbsp;人：</td>
                        <td class="td2">@(Model.TheBcdFilelistInfo.Fl_FilingMan)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td class="td2">@(Model.TheBcdFilelistInfo.Fl_FilingTime == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_FilingTime).ToString("yyyy年MM月dd日"))</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="td1">检&nbsp;查&nbsp;人：</td>
                        <td class="td2">@(Model.TheBcdFilelistInfo.Fl_CheckMan)</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td class="td2">@(Model.TheBcdFilelistInfo.Fl_CheckTime == null ? "" : Convert.ToDateTime(Model.TheBcdFilelistInfo.Fl_CheckTime).ToString("yyyy年MM月dd日"))</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="tabsFooter">
            <div class="tabsFooterContent"></div>
        </div>
    </div>
</div>

<div class="formBar">
    <ul>
        <li>
            <button type="button" class="close btn btn-default btn-sm">关闭</button>
        </li>

    </ul>
</div>
<div id="dialog_file_14">
    <iframe id="myIframe_14" src="" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"
            style="height:650px; width:1150px;"></iframe>
</div>
<script>
    var attachFilePath_14;
    $("#dialog_file_14").dialog({
        title: "附件管理",
        autoOpen: false,
        modal: true,
        width: 1200,
        height: 710,
        open: function (ev, ui) {
            $('#myIframe_14').attr('src', attachFilePath_14);
        }
    });

    function openAttachFileDialog(filePath) {
        attachFilePath_14 = 'CompletionMaterials/FileManager/Index?filePath=' + encodeURI(filePath);
        $('#dialog_file_14').dialog('open');
    }
</script>